const http = require('http');
const server = http.createServer();
server.on('request', function (req, res) {
  res.end(JSON.stringify({message: 'ok'}));
});

server.listen(3000, () => console.log('服务器正在监听3000'));

